﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace todo.Dialog
{
    public partial class ArchiveActionDialog : Form
    {
        public ArchiveActionDialog()
        {
            InitializeComponent();
            this.Font = SystemFonts.MessageBoxFont;

            Localize();
        }

        private void Localize()
        {
#if zh
            this.Text = "归档";
            this.lblMsg.Text = "指定的文件已存在，请选择处理方式";
            this.btnAppend.Text = "追加(&A)";
            this.btnOverwrite.Text = "覆盖(&O)";
            this.btnCancel.Text = "取消(&C)";
#endif
        }

        private void btnAppend_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Yes;
        }

        private void btnOverwrite_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.No;
        }
    }
}